package top.lshaci.learning.jvm.string;

/**
 * StringGCTest
 *
 * @author lshaci
 * @date 2020/7/27 15:23
 * @since 1.0.0
 */
public class StringGCTest {

    /**
     * -Xms15m -Xmn15m -XX:+PrintGCDetails -XX:+PrintStringTableStatistics
     */
    public static void main(String[] args) {
        for (int i = 0; i < 100000; i++) {
            String.valueOf(i).intern();
        }
    }
}
